/*****************************************************************************************************
 *
 * LCD_Dispay.cpp
 *
 *  LCD_Display Configurations and Functions.
 * 
 *****************************************************************************************************/
 #include "mbed.h"
 #include "LCD_Display.h"
 #include "TextLCD.h"
 //         rs   e  db4  db5 db6 db7
TextLCD lcd(p23,p24,p25,p26,p27,p28,TextLCD::LCD16x2);
 /**********************************************************************************************
 * display_LCD
 * Writes strings to the LCD.
 * Writes the Following Information to LCD Display
 * Circuit => The Circuit that we are measuring(ie. 1,2,3,4,...)
 * Power => The power of the circuit that is being measured.
 * Phase Anglee => The Phase Angle of the circuit we are measureing.
 *
 *********************************************************************************************/
void display_LCD(int circuit, float power, float phase_angle, float power_factor) {
    // Prints to LCD.
    lcd.cls();
    lcd.printf("Cir. %d,",circuit);
    lcd.printf("P: %g (W),",power);
    lcd.printf("A: %g (deg),",phase_angle);
    lcd.printf("PF: %g",,power_factor);

}